
import http from '../../utils/http'
import client from './client'
const IMG_URL = 'https://www.iot.tenyuanda.com:6443/miniprogram';
import delivery from './delivery.js';
//const api_root_1 = 'https://mall.tenyuanda.com:6443';
module.exports = {
	...client,
	IMG_URL:IMG_URL,
	...delivery,
//登录
login:(params) => http.request({url: '/iot-auth/sys/login',data: params,method: 'post'}),
//修改密码
updatePwd:(params) => http.request({url: '/iot-auth/sys/user/password',data: params,method: 'post'}),
getUserInfo:() => http.request({url: '/energy-admin/staff/getUserInfo',method: 'get'}),
getSenderInfo:() => http.request({url: '/iot-auth/sys/user/info',method: 'get'}),
getKeyNames:(params) => http.request({url: '/iot-auth/sys/config/listByKeys',data:params,method: 'get'}),

//登录
third_login:(params) => http.request({url: '/iot-auth/member/login',data: params,method: 'post',isFormData: true	}),
getAccessInfo:(type) =>  http.request({url: `/${type}/sys/oss/getAccessInfo` ,method: 'post'}),
liquefiedGasVillageList:(userType,params)=>http.request({url: `/${userType}/village/list`,data: params,method:'get'}),
liquefiedGasTownList:(userType,params)=>http.request({url:`/${userType}/town/list`,data: params,method:'get'}),
	
}
